package cn.fintecher.pangolin.entity.mysql;

import cn.fintecher.pangolin.common.enums.BaseSelect;
import cn.fintecher.pangolin.common.enums.BaseStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;
import java.util.Date;

/**
 * @Auther: xiaqun
 * @Description: 系统参数实体
 * @Date: 18:04 2019/8/14
 */

@Data
@Entity
@Table(name = "sys_param")
@ApiModel(value = "系统参数实体", description = "系统参数实体")
public class SysParam {
    @Id
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @ApiModelProperty(value = "参数名称")
    private String code;

    @ApiModelProperty(value = "参数值")
    private String value;

    @ApiModelProperty(value = "状态")
    @Enumerated(EnumType.STRING)
    private BaseStatus status;

    @ApiModelProperty(value = "参数说明")
    private String remark;

    @ApiModelProperty(value = "是否可修改")
    @Enumerated(EnumType.STRING)
    private BaseSelect modifyFlag;

    @ApiModelProperty(value = "操作人ID")
    private String operatorId;

    @ApiModelProperty(value = "操作时间")
    private Date operateTime;

    @ApiModelProperty(value = "标志 用于判断是否可上传文件 0-一般参数 1-上传文件参数")
    private Integer flag;
}
